Ext.define('ProjectAON.store.Vak', {
    extend: 'Ext.data.Store',
    model: 'ProjectAON.model.Vak',
    autoLoad: true,

    proxy: {
        type: 'ajax',
        api: {
            read: 'data/select.php',
            update: 'data/updateVak.php',
            create: 'data/insertVak.php',
            destroy: 'data/delete.php'
        },
        reader: {
            type: 'json',
            root: 'vak',
            successProperty: 'success'
        },
        extraParams:{tabel:'vak'}
    }
});